<div class="judul_content">Ubah Data kabupaten</div>
            
<?php
	$id=$_GET['id'];
	$sttmt = $koneksi->query("select * from kabupaten where id_kabupaten = $id");
	$hasil = $sttmt->fetch(PDO::FETCH_ASSOC);
?>
<form class="form" name="form_tambah" method="post" action="utama.php?module=mod_kabupaten&act=update">
     <ul>
        <li>
            <label>Kabupaten</label>
            <input type="text" name="name" id="name" class="form" size="30" maxlength="30" value="<?php echo $hasil[kabupaten]; ?>">
			<input type="hidden" name="id" id="id" value="<?php echo $hasil[id_kabupaten]; ?>">
        </li>
		<li>
            <label>Provinsi</label>
            <select name="provinsi" id="provinsi" class="form">
				<?php
					$provinsi = $koneksi->query("select * from provinsi");
					while ($p = $provinsi->fetch(PDO::FETCH_ASSOC)){
						echo "<option value=$p[id_provinsi]>$p[provinsi]</option>";
					}
				?>
			</select>
        </li>
		<li>
            <label>Tarif</label>
            <input type="text" name="tarif" id="tarif" class="form" size="30" maxlength="5" value="<?php echo $hasil[tarif]; ?>">
        </li>
		<li>
			<label>&nbsp;</label>
            <input type="reset" name="reset" value="Reset" class="reset">
			<input type="submit" name="submit" value="Ubah" class="tambah">
		</li>
	</ul>
</form>       